package com.apes.scm.stock.transfer.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.stock.transfer.model.Transfer;

import java.util.List;

/**
 * @author xul
 * @create 2018-01-23 16:07
 */
public interface TransferRepository extends CustomRepository<Transfer, String> {

    List<Transfer> findByIdAndState(String id, String state);

//    @Query(value="UPDATE STOCK_INNER_TRANSFER SET STATE = 'DELETE' WHERE ID = ?1", nativeQuery=true)
//    int deleteOrder(@Param("id") String id);
}
